export default {};

type ObjType = {
  name: string;
  age: number;
  isCool?: boolean;
  gender?: number;
  others?: string[];
};

const obj1: ObjType = {
  name: 'zs',
  age: 20,
  isCool: true,
  gender: 1,
  others: ['清华大学', '已毕业'],
};

const obj2: ObjType = {
  name: 'zs',
  age: 20,
  gender: 0,
};

const obj3: ObjType = {
  name: 'zs',
  age: 20,
};
